package synchro;

import java.io.File;
import java.io.IOException;

/**
 * @author DELL
 * @create 2017-09-22 17:54
 */
public class LogFileThread implements Runnable {
    private LogFile logFile;
    private String message;

    public LogFileThread(LogFile logFile,String message) {
        this.logFile = logFile;
        this.message = message;
    }

    @Override
    public void run() {
        try {
            logFile.writeEntry(message);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
